import React, { Component, PropTypes } from 'react'
import { Link } from 'react-router'


class SubCategory extends Component{
    render(){
        const {category} = this.props;
        return (
            <li className="mall-sub-category-li">
                <Link to={`mall/categoryGoods`} query={{categoryCode: category.categoryCode, categoryName: category.categoryName}}>
                    <img src={category.image}/>
                    <p>{category.categoryName}</p>
                </Link>
            </li>
        )
    }
}

export default SubCategory